{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
	<li class="active">
		<a href="#">活动列表</a>
	</li>
</ul>
<div class="app-content">
	<div class="app-filter">
		<div class="filter-action">
			<a href="{php echo web_url('paidpromotion/payactive/createactive')}" class="btn btn-primary">添加活动</a>
		</div>
	</div>
	<div class="app-table-list">
		<div class="panel-body table-responsive collapse in" id="order-template-item-4" style="padding: 0;">
			<table class="table table-hover table-bordered">
				<thead style="background-color: #FFFFFF;">
				<tr>
					<th style="width:80px;text-align:center;">活动标题</th>
					<th style="width:150px;text-align:center;">赠品内容</th>
					<th style="width:100px;text-align:center;">创建时间</th>
					<th style="width:60px;text-align:center;">活动状态</th>
					<th style="width:100px;text-align:center;">操作</th>
				</tr>
				</thead>
				<tbody>
				{loop $lists $item}
				<tr class="text-center">
					<td>{$item['title']}</td>
					<td>
					{if $item['giftstatus'] == 1}<span class="label label-success">超级券</span>{/if}
					{if $item['giftstatus'] == 2}<span class="label label-warning">激活码</span>{/if}
					{if $item['giftstatus'] == 3}<span class="label label-danger">在线红包</span>{/if}
					{if $item['integralrate'] > 0}<span class="label label-info">积分</span>{/if}
					{if $item['balancerate'] > 0}<span class="label label-success">余额</span>{/if}
					{if $item['cardday'] > 0}<span class="label label-success">一卡通会员</span>{/if}
					{if $item['dislevelid'] > 0}<span class="label label-warning">分销商</span>{/if}
					{if $item['giftstatus'] == 0}<span class="label label-default">无赠品</span>{/if}
					</td>
					<td>
						{php echo date('Y-m-d H:i',$item['createtime'])}
					</td>
					<td>{php echo tpl_change_status('paidpromotion/payactive/changeStatus&id='.$item['id'],$item['status'])}</td>
					<td class="text-center" style="position: relative;">
						<p style="color: #428bca;display: inline-block;"><a href="{php echo web_url('paidpromotion/payactive/createactive', array('id' => $item['id']))}">编辑</a> </p>
						<p style="color: #428bca;display: inline-block;"><a href="{php echo web_url('paidpromotion/payactive/delate', array('id'=>$item['id']))}" data-toggle="ajaxRemove" data-confirm="确定要删除吗？">删除</a></p>
					</td>
				</tr>
				{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">
				
			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	$("#search").click(function(){
		$('#form1')[0].submit();
	});
</script>
{php include wl_template('common/footer');}